<template>
  <el-dialog title="选择条件"
             :visible.sync="dialogForm"
             width="1200px"
             append-to-body>
    <el-checkbox-group v-model="checkList">
      <el-row>
        <el-checkbox label="货类"></el-checkbox>
        <el-checkbox label="当月作业量上限"></el-checkbox>
      </el-row>
      <el-row>
        <el-checkbox label="品名"></el-checkbox>
        <el-checkbox label="当月作业量下限"></el-checkbox>
      </el-row>
    </el-checkbox-group>
    <div style="text-align:center">
      <el-button plain
                 type="info"
                 @click="handleSubmit">确定</el-button>
      <el-button plain
                 type="info"
                 @click="dialogForm = false">返回</el-button>
    </div>
  </el-dialog>
</template>

<script>

export default {
  name: 'selectConditionForm',
  data() {
    return {
      dialogForm: false,
      checkList: [],
      indexNumber:0
    }
  },
  methods: {
    //确定
    handleSubmit() {
      this.$emit('condition', this.checkList,this.indexNumber)
      this.dialogForm = false
    },
    getRow(row,index){
      this.indexNumber = index
    }
  }
}
</script>

<style scoped>
</style>
